n = 0
for i in range(1,1025):
    n += i
print(n)



# m = 1
# sum = 0
# while m<=1024:
#     sum += m
#     m +=1
# print(sum)